package com.qu.OperatorSqlite;

import android.app.Application;

import com.qu.OperatorSqlite.db.DBManager;

/**
 * 应用全局的配置
 * Created by quguangle on 2017/10/26.
 */

public class AppContext extends Application {
    private static AppContext instance;
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        //初始化数据库
        DBManager.init(this);
    }

    public static AppContext getInstance(){
        return instance;
    }
}
